//
//  Student.m
//  学生管理系统
//
//  Created by mir_yan on 2018/9/30.
//  Copyright © 2018年 hakeem. All rights reserved.
//

#import "Student.h"

@implementation Student

+ (Student*) studentWithName: (NSString*)name
                          no: (NSInteger)no
                       score: (NSInteger)score
                      dclass:(NSString*)dclass {
    
    Student * stu = [[Student alloc] init];
    stu.name= name;
    stu.no = no;
    stu.score = score;
    stu.dclass = dclass;
    return  stu;
}

- (NSString *)description
{
    return [NSString stringWithFormat:@"name = %@ no = %ld score = %ld dclass = %@", self.name, self.no, self.score, self.dclass];
}
@end
